
package com.yzkj.cpjxc.business.framework.utils;

/**
 * 用于记录性能监视信息
 */
public class MethodPerformace {
	
	/**
	 * 启动时间
	 */
	private long beginTime;
	
	/**
	 * 结束时间
	 */
	private long endTime;
	
	
	public MethodPerformace(){
		this.beginTime = System.currentTimeMillis();
	}
	
	public long getElapse(){
		
		endTime = System.currentTimeMillis();
		long elapse = endTime - beginTime;
		
		return elapse;
	}
}

